package action.strategy;

import action.strategy.vo.Ticket;
import lombok.Data;

@Data
public class ConcreteStrategyOne implements Strategy {

    @Override
    public double calculate(Ticket ticket) {
        System.out.println("正在执行策略One,打8折");
        return ticket.getPrice() * 0.8;
    }
}
